from django.conf.urls.defaults import patterns, include, url
from views import tmradio, send_vote, request_tm_token, queue_track
urlpatterns = patterns('',
    url(r'^$', tmradio, name='tmradio'),
    url(r'^vote/(?P<track_id>\d+)/(?P<vote>[a-z]+)$', send_vote, name='send_vote'),
    url(r'^queue/(?P<track_id>\d+)$', queue_track, name='queue_track'),
    url(r'^gettoken/(?P<aid_type>jid|email)$', request_tm_token, name='request_tm_token'),
    )
